Thomson Reuters Interview Question

T-SQL question.