title: finding the first index that unbalances brackets in a string
body: <p>given a string that includes unbalanced brackets of some order, how can I find the first index that is the unbalancing factor of my string and return it?</p>
  
  <p>for example: if the string is: ")" the return value will be 0 ,
               if the string is: "(((jjkk))))" the return value will be 10 ,
               if the string is: "((" the return value will be 2 ,</p>
  
  <p>I have implemented a function that returns boolean regarding if my string is balanced or not. (T - balanced)
  I know it should be some recursive function but just can't figure it out...
  Thanks!</p>