UnitedHealth Group interview question

SQL Query