EarnIn Interview Question

This was case study.