Minimize run-length encoded length with deletions | Databricks Coding Question