Goodreads interview question

Bit Swap and string rev