EarnIn interview question

This was case study.