Zach Polansky's submission of Profitable Paths 2 | CodeChef