Driver Code
if __name__ == ' _ _ main _ _ ' : NEW_LINE INDENT N = 5 NEW_LINE M = 22 NEW_LINE L = 14 NEW_LINE R = 16 NEW_LINE arr = [ 17 , 11 , 10 , 8 , 15 ] NEW_LINE print ( countMagicNumbers ( 0 , 0 , arr , N , M , L , R ) ) NEW_LINE DEDENT