Surya Software Interview Question

The Bridge and torch problem