Driver code
if __name__ == " _ _ main _ _ " : NEW_LINE INDENT preCompute ( ) NEW_LINE arr = [ 2 , 3 , 3 , 3 , 3 , 4 , 4 , 4 , 4 , 4 ] NEW_LINE n = len ( arr ) NEW_LINE countWays ( arr , n ) NEW_LINE DEDENT