What if I ask you the following question — Give me an input string that outputs a SHA-256 hash that starts with 00000 . How will you do it?
A: You will have to brute force until you find a value that starts with 00000

What if I ask you that the input string should start with 100xdevs ? How would the code change?

What if I ask you to find a nonce for the following input -
harkirat => Raman | Rs 100
Ram => Ankit | Rs 10

Lets explore https://andersbrownworth.com/blockchain/