Chubb interview question

subset sum? duplicates in n array basic dsa