Find top-5 most similar rows across datasets | Databricks Interview Question