Count the Number of Beautiful Subarrays

Answer Panel