Function to find the length of the longest subsequence such that the XOR of adjacent elements in the subsequence must be non - decreasing
function LongestXorSubsequence ( arr , n ) { let v = [ ] ; for ( let i = 0 ; i < n ; i ++ ) { for ( let j = i + 1 ; j < n ; j ++ ) {