Broadridge interview question

Write a program to reverse 1234