Lenskart Solutions interview question

DSA Question: Check if the given braces are in order in stack.