Implement a Snapshot Set Iterator | Databricks Interview Question