Question 1
Ada has a box of ten pencils. A box is beautiful when all pencils point in the same direction. In one move she reverses one contiguous group: upward pencils become downward and downward pencils become upward, as in the example.

What is the minimum number of moves needed for this box?


What is the minimum number of moves needed for this box?
























