Mercury Systems interview question

Write a function to swap the bytes in a 32 bit integer.