Global Relay interview question

Use a 2 pointer questions