algo4: stack: Longest valid paranthesises