However, let's take a look at a simple example of how the algorithm tries to figure out the correct steps form input to output.