DXC Technology Interview Question

I was asked to solve a coding question about balancing the brackets.