GreedyGame interview question

System Design, CS fundamentals