i used a deque to keep track of pairs of <> can someone please point out the error in my code : http://ideone.com/ap31ZC