Amazon interview question

Parenthesis Question based on stacks concept Finding an element in a sorted 2D array