Databricks Interview Question

Good tuple, sum of segments