We need to determine the minimum number of steps to move from P2 to P5. The movement rule requires two steps in one direction followed by one step in a perpendicular direction.
By following the movement restrictions and considering the allowed moves, we can visualize the path taken across the grid. Here is how it works:
1. From P2, the person can move two squares to the right and then one square down.
2. From the new position, another two steps to the right followed by one step upwards.
3. From here, another similar move will get the person close to P5.
Counting all the steps, we see that it takes 5 moves to reach P5.
Thus, the correct answer is (B) 5.