OpenText Interview Question

Question related to sliding window and subarray sum