Ad
export function validateString(input: string, index: number, stack: number = 0): boolean {
  // TODO: your code
  if(index === 0 && (input[index] === ')' | input[index] === '}' | input[index] === ']')) {
    return false;
  }
    
  if(input[index] === '(' | input[index] === '{' | input[index] === '[') {
    stack++;
  }
  
  validateString(input, index + 1, )
  
}