Icloud still on iphone i bought from someone?

I bought an iPhone, just to use like an iPod and the icloud from the other person is still on there. It says it still needs a password to delete it because the locate my iPhone thing is on and locked, any way to get rid of this without losing the stuff I just put on the apps I just put on the iPhone? Oh! I do have an iTunes account with a lot of apps I want but I'm afraid to plug it in cause it might think it's not my iPhone.

That iCloud thing is the anti-theft thing, only the previous owner can unlock it, not even Apple can unlock it once it's in that state. You need to ask the person you bought it from for their help.