Robinhood Interview Question

Book with multiple endings and paths