Hi,
Incase you are still looking for the answer for little big endian conversion checkout www.compintervi ew.com, there is a solution for this and many such interview question problems :)

Gmu