Pregunta de entrevista de Microsoft

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