Art & Logic interview question

Simple integer encoder-decoder