Avanade interview question

Sql