Workday Interview Question

only remember 3sum. Forgot others.