Ericsson interview question

b number analysis to solve