public static int findSingalNumForOddTimes(int[] a,int repeatTimes){
        int result=0;
        for (int i = 0; i < 32; i++)
        {
            int c=0;
            int mask=1<<i;
            for (int j = 0; j < a.length; j++)
            {
                int value = a[j]&mask;
                if (value!=0)
                {
                    c++;
                }
            }
            
            if(c%repeatTimes>0){
                result = result | mask;
            }
        }
        return result;
    }