This is a medium level problem and can be solved if you've already tried some more problems related to array. The intuition is not a very easy one but can be made if you think closely.
Link to the problem: https://leetcode.com/problems/subarra...
On this page of the site you can watch the video online Subarray Sum Equals K | Leetcode | Medium | Java | O(n) | HashMap with a duration of hours minute second in good quality, which was uploaded by the user AlgorithmHQ 01 August 2023, share the link with friends and acquaintances, this video has already been watched 1,952 times on youtube and it was liked by 40 viewers. Enjoy your viewing!