in reply to Urgent help required. Need a code to translate a given nucleotide sequence into proteins using codon table.
If it does what you want, then it's fine!
Since you really didn't tell what's wrong or right, I'll leave it to you to decide how fine it is.
I suggest urgently fixing your code tags, then urgently describing the symptoms to your urgent problem. Otherwise, many monks will urgently ignore it.
When your only tool is a hammer, all problems look like your thumb.