Elevance Health interview question

Askes to write algorithm about DFS