My iPhone was hacked by scammers
Hello, my name is Ilana. My problem is that my iPhone was hacked by scammers. A friend wrote to me with a request to find her iPhone, and for this I had to log out of my iCloud and go to her. She gave me the AppleID and password and I entered that in the settings. Then my phone turned off and a window appeared to set up the iPhone again. The scammers wrote that they had hacked the iPhone and were demanding money to unlock the iPhone. Can you help ?
[Re-Titled by Moderator]