Domanda di colloquio di IBM

Two leetcode problems, using binary operations.