First sort

the first len(l) obviously equals the second len(l)
n2 = n1 + 1
It means we can make while statement much easier to read.
Only one loop variable instead of two.