https://imgur.com/a/11gT0Gj<p>Here are my notes that I made. I make this not to memorize them and parrot them. I write them so that when I start solving these problems next time, I don't have to start again from zero.<p>I am unable to express my code solution in words. How I came up with the code etc..Can anyone guide me how can I achieve it?