KPIT Technologies interview question

Write an code to convert Little endian to Big