Atome Interview Question

easy Leet code question to check valid parenthesis