Domanda di colloquio di Microsoft

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