Chosen Solution

I have purchased a second-hand iphone 5s and accidentally restore it and now it is screen locked and ask owner mail id and password. How to unlock it please help

Only if you can contact the original owner of the iPhone as it’s locked to their Apple ID and password. Since it goes through apple server’s there is no way around it without getting a replacement board that is clean.