Number of Ways to Split Array | Leetcode 2270