Question d’entretien chez General Motors (GM)

I had one on bit manipulation and a basic for-loop/string problem.