TIAA interview question

Database queries