The problem statement is more-or-less like the title of the question, but I will provide the link as a reference.
For example, the first graph has the startin