TATA ELXSI interview question

Reverse the Integer and year calculation