Matches the brackets. Runs in linear time.
Merge branch 'master' of https://github.com/manoj84/DynamPrograms