Pergunta de entrevista da empresa Microsoft

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