Thomson Reuters interview question

Basic string reverse program,Collections,