Yahoo interview question

reverse string