Alice and XOR queries

Company: Rakuten

Difficulty: medium