WorldQuant Interview Question

Sorting, dynamic programing x2 , two sum like problem,