Domanda di colloquio di Databricks

Target sum with two arrays , had to choose at least one subarray from both array