What is Double Spending and How Blockchain Solve it?

Double spending is a situation where the user can spend his/her coin multiple time. If someone has one Bitcoin then he sent this coin to the different users at the same time then such a situation is known as the Double Spending Problem.
How does Blockchain Prevent Double Spending?
To understand more about double spending we need to know about the working of block creation in Blockchain. In the blockchain, the coin will only be deducted from the sender's account only after the transaction is verified and included in the Block by using a consensus mechanism i.e proof of work till then the user can send that coin to multiple addresses. Because In blockchain transactions aren't directly included in the block initially transactions are placed in the memory pool which is also known as unconfirmed transactions, Once the miner picks one of the transactions initiated by the user and adds it to the blockchain then the user's wallet will be updated with the balance 0.
After that, every other transaction initiated by that user is rejected because he has 0 balance in his wallet.
