Question d’entretien chez Nykaa

Array/Stack based question on frequency on numbers