Blume Global interview question

SQL basics