Pregunta de entrevista de Amazon

Nothing was too difficult. Bit-shifting, data structures, efficiency.