What is the intention of program below?

```
def p1(brackets):
    vectical_distance = 0
    length_brackets = len(brackets)
    i = 0
    while (i <= length_brackets - 1):
        brack = brackets[i]
        if brack != '(':
            vectical_distance -= 1
            if not vectical_distance >= 0:
                return False
        else:
            vectical_distance += 1
    
    distance_equals_zero = vectical_distance == 0
    return distance_equals_zero
``` Provide the entire answer in JSON format.
user