Was this from a game of yours? Chess.com should add this to their puzzle database.
It was from a website, I just copy the positions to find answers
But the king gets away after 2. Nxa7. They don't have to take back. I don't know what the solution would be though. Maybe Nxa7 first so they have no choice but to take back, then Qxc6+?