Parsons Corporation Interview Question

Check if a statement has valid ((())) like a compiler