UnitedHealth Group Interview Question

Dynamic algorithm design question