UKG interview question

Longest Subarray with sum K