Frage im Vorstellungsgespräch bei MathWorks

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