PocketPills Interview Question

coding question on subarray sum