Capital One interview question

Codesignal coding questions related to sorting, shortest path.