Doubt in taking factors

why aren’t we keeping track of 2?

@Coder_Pal
We need the minimum of occurences of 2 and 5
Clearly 5 will occur less frequently than 2
So just finding occurences of 5 is enough

Kindly close the doubt