Optum interview question

SQL queries and two medium dsa questions