Pregunta de entrevista de Palantir Technologies

Leetcode question on bits and string manipulation