RuggedCom interview question

SQL queries