Pergunta de entrevista da empresa Zühlke

Sort and filter array of objects based on the information provided