EarnIn Interview Question

Walk me through this case.