Domanda di colloquio di Loyalty Juggernaut

Count the subarray question from arrays with some condition