ZS Associates interview question

Burning Rope riddle in telephonic round.