Domanda di colloquio di Nykaa

Array/Stack based question on frequency on numbers