Pergunta de entrevista da empresa MRI Software

Solve some basic sql and javascript problems using loops and sorting.