Write a program to calculate 'Average Number of Steps' for the walker to be outside of the region. (if a=3)
y
^
|
a|
+---+---+---+---+---+---+
| | | | | | |
| | | | | | |
+---+---+---+---+---+---+
| | | | | | |
| | | | | | |
+---+---+---+---+---+---+
| | | ^ | | |
-a | | | | | | | a
---------+---+---+<--o-->+---+---+---------> x
| | | | | | |
| | | V | | |
+---+---+---+---+---+---+
| | | | | | |
| | | | | | |
+---+---+---+---+---+---+
| | | | | | |
| | | | | | |
+---+---+---+---+---+---+
-a|
|