Given an array of integers and an integer value K, find the total number of continuous subarrays whose sum equals K.
Example:
Input: arr = [1, 2, 3], K = 3
Output: 2
Explanation: The subarrays are [1, 2] and [3].

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?