Minimum Sum Gfg