Solve Maximal AND Subsequences

Find the number of k-element subsequences of an array having a maximal bitwise AND value. Solving code challenges on HackerRank is one of the best ways to prepare for programming interviews.