635. Count Number of Nice Subarrays
You have a fondness for subarrays that contain exactly **k** odd numbers, which are referred to as ***Nice subarrays***. Given an array of integers nums and an integer **k**, a continuous subarray is considered nice if it contains k odd numbers. Determine the total number of nice subarrays.
The first line contains two space-separated integers **N** (the size of the array) and **k**. The second line contains the integer array.
Print the total number of nice subarrays.
5 3 1 1 2 1 1
1 <= N <= 5*10^4 1 <= K <= N 1 <= Nums[i] <= 10^5