function fails on input "ATGC" it return ATG as you are traversing only by 3. It should also return the C. 

I believe this has caused many future functions also to fail on our test suite.