Pergunta de entrevista da empresa Guidewire

one task was to solve BinaryGap