WePay interview question

Leetcode Degree of an Array Leetcode Ways to Split array into Three Subarrays