RTX interview question

convert endianness