Number of Valid Subarrays - DSA Problem | Talentd