Magic Finserv interview question

Write a code to reverse a word?