Count Subarrays With Perfect Square Product

Company: Expedia

Difficulty: medium