The Ethernaut is a Web3/Solidity based wargame inspired on overthewire.org. Here’s the solution to the Level 9— King. The contract below represents a very simple game: whoever sends it an amount of ether that is larger than the current prize becomes the new king. On such an event, the overthrown…