AbbVie Interview Question

How to mirror an 8bits value in C/C++?