AKUNA CAPITAL Interview Question

2 Qs that use greedy algorithm