Apexon interview question

about sql