Solve The Best Mask

For given array of masks you should find mask with minimal possible number of bits such that it intersects with every mask in the array. Solving code challenges on HackerRank is one of the best ways to prepare for programming interviews.