Pregunta de entrevista de Tata Consultancy Services

Finding frequency of element in array without using hashmap