Maximize sum of LSBs of Bitwise OR of all possible N/2 pairs from given Array
Given an array arr[] consisting of N positive integers, where N is even, the task is to form N/2 pairs such that the sum of the Least Significant Bit of Bitwise OR of all these pairs is maximum. Examples: Input: arr[] = {1, 2, 3, 4, 5, 6, 7, 8}Output: 8Explanation:On forming the pairs as (8, 4),(6,