Magic Finserv Interview Question

Write a code to reverse a word?