Add cut rod problem