hash, scan twice.
treeSumClosest, o(n*2).