EarnIn Interview Question

CS fundamental knowledge.