Amazon interview question

coding questions where to implement isParanthesized() method for and arithmetic expression..