Cutting A Rod Problem