Please give a test case where my code fails for compilers and parsers

[CodeChef: Practical coding for everyone]
the above link is the code where i had written in java