Program to find subarray equal to given sum