Your question is Validate Properly Nested Brackets. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Given a string containing only ()[]{}, determine whether it is properly nested. A valid string must close brackets in the correct order and with matching types.
1 <= s.length <= 10^4s contains only bracket characters