Ramp interview question

Dynamic programming or hash maps for efficiency, like bank automation or expense splitting.