Pregunta de entrevista de HighRadius

basic sorting question and array questions