Count pairs made up of an element divisible by the other from an array consisting of powers of 2
Given an array arr[] consisting of N powers of 2, the task is to count the number of pairs (arr[i], arr[j]) such that i < j and arr[j] is divisible by arr[i]. Examples: Input: arr[] = {4, 16, 8, 64}Output: 5Explanation:The pairs satisfying the given condition are {4, 16}, {4, 8}, {4, 64}, {16, 64