I been trying to understand this concept recently. However I got stuck for a very long time.
def backtrace(parent, start, end): path = [end] while path[-