Choose fastest transportation mode on city grid | Databricks Interview Question