Bloomberg interview question

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