Pregunta de entrevista de Zühlke

Sort and filter array of objects based on the information provided