NVIDIA Interview Question

solve the open parenthesis problem.