def max_sub_array(nums): # Replace this placeholder return statement with your code return 1