Pergunta de entrevista da empresa MathWorks

coding involving bit manipulation, recursion.