EPAM Systems interview question

In Google discussion I was asked for only String reversal in Java