Optum Interview Question

one stack que and one sql query