Pergunta de entrevista da empresa MathWorks

In the technical interview converting binary to a integer based on the bits