Driver code
public static void Main ( String [ ] args ) { int n = 4 , m = 5 , x = 1 , y = 1 ; int [ , ] moves = { { 1 , 1 } , { 1 , 1 } , { 0 , - 2 } } ; Console . Write ( countSteps ( x , y , n , m , moves ) ) ; } }