https://www.kbeanie.com/2013/05/03/coding-exercise-am-i-engaged/
Coding Exercise: Am I engaged?