Domanda di colloquio di Bloomberg

Given a signed 32-bit integer x, return x with its digits reversed.