Find first CIDR block covering IP | Databricks Coding Question