UnitedHealth Group interview question

write a SQL code for this scenario