Amazon Interview Question

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