ENH iSecure interview question

basic core java questions reverse of a string