Driver Code
if __name__ == ' _ _ main _ _ ' : NEW_LINE INDENT arr = [ [ 0 , 2 ] , [ 2 , 2 ] , [ 2 , 5 ] , [ 4 , 5 ] ] NEW_LINE M = 5 NEW_LINE N = len ( arr ) NEW_LINE canReach0toM ( arr , N , M ) NEW_LINE DEDENT