Kepler interview question

Walked through a case