Nagarro interview question

Find target sum in array Self ,generators N many more