Optum interview question

one stack que and one sql query