Maximal AND Subsequences | HackerRank

Find the number of k-element subsequences of an array having a maximal bitwise AND value.