TIAA interview question

Sql queries