which one is leading digit? 5 or 1?
XOR means you get "one" when only one of the two operants is turned on. like:
1011010
XOR
1001111
=
0010101
then convert the binary to hex.
"3) Shift first group one digit to the right, wrapping around "
IS it one digit to the right or one bit to the right?
Does wrapping around mean something like this:
4537 shift 1 digit to the right wrapping around
=7453?