PayPal Full Stack Engineer challenge:
Was asked the following two.
Couldn't solve the both in time - tried the second one using binary conversion and bit swapping using XOR.
Didn't get anywhere with the first.
[