Pregunta de entrevista de Amazon

Class / data structure design, bit shifting.