Stockly interview question

Large SQL test that takes 1 hour to do.