You are given an array `arr` of positive integers and an array `queries` where `queries[i] = [left, right]`. For each query, compute the XOR of the elements from index `left` to index `right` inclusive, `arr[left] ^ arr[left + 1] ^ ... ^ arr[right]`. Return an array `answer` where `answer[i]` is the result of the `i`th query.
You are given an array arr of positive integers and an array queries where queries[i] = [left, right]. For each query, compute the XOR of the elements from index left to index right inclusive, arr[left] ^ arr[left + 1] ^ ... ^ arr[right]. Return an array answer where answer[i] is the result of the ith query.