Question d’entretien chez MathWorks

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