Signing out of IPad after the ICloud account has been deleted
My brother gifted me an Ipad (5th generation) that he purchased. He deleted the ICloud account associated with this IPad before I had a chance to sign out from his Apple ID, using the password that he gave me. So I am locked in to the current Apple ID because ICloud does not recognise the name.
How can I now re-set the IPad so I can enter my Apple ID?
Many thanks.
iPad mini 5 Wi-Fi