Thomson Reuters interview question

T-SQL question.