Nokia interview question

Implement a palindrom checker in java