ABC Interview Question

Two sum was asked here.