Avanade interview question

sql