Sum of Imbalance Numbers of All Subarrays

Answer Panel