title: Java String S="{({)}}"
body: <p>Hi I have a String like --String S="{({)}}"-- 
  I want to write logic where if a bracket opens it should be closed in that sequence if not return false.</p>
  
  <p>For e.g
  1.
  S="{({)}}"
  it is "true" as { bracket got closed in correct sequence manner.</p>
  
  <p>2.S="{([)}]"
  it is false as "[" should have been closed before "}"</p>