UKG Interview Question

Three-sum