Microsoft interview question

Given an integer, write a function that rotates the digits to the right.