Largest AND Combination

You are given an array of positive integers candidates. Find the size of the largest subset whose bitwise AND is strictly greater than zero. The answer is simply the maximum frequency of any set bit across all numbers in the array.

Examples
Input: [16,17,71,62,12,24,14]
Output: 4
Hints

Largest AND Combination

You are given an array of positive integers candidates. Find the size of the largest subset whose bitwise AND is strictly greater than zero. The answer is simply the maximum frequency of any set bit across all numbers in the array.