Max sum upto k