In the square grid shown on the left, a person standing at $\text{P2}$ position is required to move to $\text{P5}$ position.

The only movement allowed for a step involves, “two moves along one direction followed by one move in a perpendicular direction”. The permissible directions for movement are shown as dotted arrows in the right.

For example, a person at a given position $\text{Y}$ can move only to the positions marked $\text{X}$ on the right.

Without occupying any of the shaded squares at the end of each step, the minimum number of steps required to go from $\text{P2}$ to $\text{P5}$ is

1. $4$
2. $5$
3. $6$
4. $7$