I just recieved an iphone from my friend cause it wasnt working. The problem is that the phone is stuck on the Itunes connect screen with no service and an unknown imei and unknown iccid.

The phone stills has warranty so i wanna return it but i think its been jailbroken. So is there a way i can restore it so theres no evidence of it being jailbroken?