Stockly interview question

First step is the SQL test