Pergunta de entrevista da empresa Stockly

Large SQL test that takes 1 hour to do.