How to get through Apple ID?

I bought a iphone 5c secondhand turns out the person stole and resold it to me. I restored it and now I can't get through apple id. Anything would help.

You can't, the person that had it originally will need to wipe it before you can set it up as your own (which by the way if its stolen that means you can't turn off find my iphone either, and it will notify them of the phones location whenever its connected to Wi-Fi or celltower).

I second that.
You got taken. If you used credit card or paypal put a hold on his money and send it back.