Subarray Product Constraint

Given an array of positive integers nums and an integer k, return the number of contiguous subarrays whose product of all elements is strictly less than k.

Examples
Input: [[1,2,3],6]
Output: 4
Hints

Subarray Product Constraint

Given an array of positive integers `nums` and an integer `k`, return the number of contiguous subarrays whose product of all elements is strictly less than `k`.