Pergunta de entrevista da empresa Amazon

Count Subarrays with fixed bounds in the problem-solving round, This is a leetcode style Hard problem