Stockly Interview Question

First step is the SQL test