UnitedHealth Group interview question

deep logics on rpgle and sql