Probability of an outcome given a hidden path

Sign in to test your solution.