Citadel interview question

Minimal equal sum using dp