Pergunta de entrevista da empresa Amazon

Given an array of integers, find the subarray that adds up to a sum