Workspot interview question

Q1. Zero Sum problem solution