Path with Maximum Probability
Implement `solve` for **Path with Maximum Probability**. Return the required output for the provided arguments.
Implement `solve` for **Path with Maximum Probability**. Return the required output for the provided arguments.