Amazon Interview Question

Given an array of integers, find the longest subarray with a given sum.

Amazon Interview Question: Given an array of integers, find the longest subarray with a given sum. | Glassdoor