Pregunta de entrevista de Citadel

Problem solving in hardware computation question.