"I found out that I have friends in Ukraine."
Translation:Я дізналася, що у мене є друзі в Україні.
"Technically" it's correct. I can't explain why :)
For example, in Italian for the same purposes of "flow" and aesthetics, one says "e tu" but "ed io", and "e io" is incorrect. However, in Ukrainian the у/в and і/й/та and many others are not "compulsory" and are considered interchangeable. Depending on what you're currently learning in a high school, a teacher may or may not subtract points for using "в" rather than "у" and vice versa in some sentence :)