Longest Valid XOR Subsequence

Company: JPMorgan Chase

Difficulty: medium