Question d’entretien chez Google

String operation and bit manipulation problem.