This function loops through in sets of 3, which is ok. but you forgot about the remainder at the end of the dna sequeunce. 

you failed hence on these tests: 

Test 4 FAILED: 
Input DNA: ATGC
Expected Output: ATGC
Actual (your) Output: ATG
FAILED - get ORF that starts with a start codon