Capco Interview Question

Write a program to reverse string input I love Java output. a vaJe volI ,