Leetcode 1787. Make the XOR of All Segments Equal to Zero | Hello Interview