Pergunta de entrevista da empresa Databricks

Find the number of ways to divide an array into 3 subarrays where the sum(subarray1) <= sum(subarray2) <= sum(subarray3) and none of the 3 subarrays are empty.