Bridge and Torch Problem