rename file
rename file
added count one, I spent a lot time on the wrong way of solve it in O(n)
added gcd