Pregunta de entrevista de ACKO General Insurance

Find subarray with given sum and trees