Infogain interview question

Write the python program to reverse the number and string without using inbuilt functions.