Driver code
if __name__ == ' _ _ main _ _ ' : NEW_LINE INDENT codeTime = [ 1 , 2 , 3 , 1 , 1 , 3 ] NEW_LINE n = len ( codeTime ) NEW_LINE WorkingSessionTime = 4 NEW_LINE print ( solve ( codeTime , n , WorkingSessionTime ) ) NEW_LINE DEDENT