Question d’entretien chez Databricks

Find shortest path in a 2'd sorted array