Ideas2IT interview question

bridge and torch puzzle