Function to generate all permutations and calculate the maximum sum of Bitwise AND of same indexed elements present in any permutation and an array arr [ ]
def getMaxUtil ( p , arr , ans , chosen , N ) : NEW_LINE