InterviewBit Problems   Counting Subarrays! : Solved