Sum of All Subarray XORs

Company: UKG

Difficulty: medium