Domanda di colloquio di Amazon

two array based problems related to greedy and sorting and LFU cache implementation