Add solution for the bridge problem.