Grouping from the left would leave the short group at the end, but the problem wants the short group first. Working backward from the end gives full groups of k...