InterviewBit Problems   Scaler Subarrays II : Solved