why length of frequency array is taken 1100001? please solve asap
It should be any number greater than 10^6+2