Respuesta :

Swap the shortest and longest pencil's places. You don't have to move the middle pencil.
Simply swap the first and last pencil in the order.