How do you print out a reversed output

I'm new to Arduino and have been looking through forums but sadly none of them have helped me.

The goal is to print out val in reverse order in a 4 by 4 digit
int val = B11110011

Serial.print(val, BIN);

The output is supposed to look like this:
0011 1111

I think this has to do with the bitshifting

not bit shift, nibble swap

    uint8_t  x = 0xf3;

    uint8_t  y = ((x >> 4) & 0xF) | ((x << 4) & 0xf0);

Serial.print() won't print leading zeros. This looks like a school assignment so I'll leave it up to you to figure out how to fix that.