public static void nestedLoops(int currentLoop) {
        if (currentLoop == loopsCount) {
            int l0 = loops[0];
            int l1 = loops[1];
            int l2 = loops[2];
            int l3 = loops[3];

            if (l0 == l1 || l0 == l2 || l0 == l3) {
                return;
            } else if (l1 == l2 || l1 == l3) {
                return;
            } else if (l2 == l3) {
                return;
            }
            String[] arr = {allNums[l0], allNums[l1], allNums[l2], allNums[l3]};
            combine(arr);
            return;
        } else {
            for (int i = 0; i < iterationsCount; i++) {
                loops[currentLoop] = i;
                nestedLoops(currentLoop + 1);
            }
        }
    }