Driver Code
if __name__ == " _ _ main _ _ " : NEW_LINE INDENT K = 12 NEW_LINE arr = [ 1 , 12 , 1222 , 13 , 2 ] NEW_LINE n = len ( arr ) NEW_LINE print ( noOfValidNumbers ( K , arr , n ) ) NEW_LINE DEDENT