Make Arrays Equal via Subarray Sums

Company: Arista

Difficulty: medium