Both are correct, either wrong or wrongly can go with this sentence.
The adverbial wrong always follows the verb, but it needs an object because isn't gramatically polite (he answered the question wrong). And wrongly can go either before or after the verb (e.g., he was wrongly imprisoned by the state;the state imprisoned him wrongly).