Nutanix Interview Question

3 sum LC medium question