If sum becomes more than x and length of this subarray is smaller than current smallest length , update the smallest length ( or result )
if curr_sum > x and ( end - start + 1 ) < min_len : NEW_LINE INDENT min_len = ( end - start + 1 ) NEW_LINE DEDENT return min_len ; NEW_LINE