Goodreads Interview Question

Bit Swap and string rev