in the code solution (python)
line 16:
graph[parent].append(child) # put the child into it's parent's list
The correct English spelling should be “its” for possessive not “it’s” for contraction.
reference: https://www.grammarly.com/blog/its-vs-its/
Thank you!