Databricks interview question

Good tuple, sum of segments