Can all the logic in this for loop be move into the previous one `for (int i = 0; i < ctgSizeCounts.get(s); i++)` than we can just visit the array once ?