Reltio Interview Question

Valid parentheses and NLP preprocessing