Solve reverse Polish notation,
find shortest path with two roads