LinkedIn interview question

1. Two sum problem 2. Parenthesis matching