UnitedHealth Group Interview Question

write a SQL code for this scenario