Workspot Interview Question

Q1. Zero Sum problem solution