Pergunta de entrevista da empresa Databricks

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