Count of Integers in given Array whose MSB and LSB are set
Given an array A[] of length N, the task is to count the number of elements of the array having their MSB and LSB set. Examples: Input: A[] = {2, 3, 1, 5}Output: 3Explanation: Binary representation of the array elements {2, 3, 1, 5} are {10, 11, 1, 101}The integers 3, 1, 5 are the integers whose fir