Databricks Interview Question

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