Problem in creating a new apple id
The previous owner should "Un-link" his/her icloud account from the device so you would be able to use it.

To erase all content and settings by choosing Settings > General > Reset > Erase All Content and Settings. OR from the icloud account online.... Then his/her Apple ID and password needed. After the device is erased, you will be able to proceed with the setup process.