UKG Interview Question

Longest Subarray with sum K