Test Cases (0/5)
    • parensValid("Y(3(p)p(3)r)s") to return true

    • parensValid("N(0)t )0(k") to return false

    • parensValid("N(0)t (0(k))") to return true

    • parensValid("(N(0)t (0(k))") to return false

    • parensValid("()(N(0)t (0(k)))") to return true

    Output
    Michael
      (0/300)