What's wrong with this code ...its throwing an exception(top view of tree)

@Narasimha
u have syntax error
refer to this