Solved ValidParantheses

in ten minutes!