Pregunta de entrevista de Loyalty Juggernaut

Count the subarray question from arrays with some condition