Solution
✅ Correct Answer: 5100
Just opposite to first question here we need to minimize the use of hypotenuse (as they will reduce the distance).
To maximize the path we wull go along the edges of rectangles and squares.
The possible path would be
The maximum distance walked