FIS Interview Question

SQL question, coding question