Amazon Interview Question

Max heap, dynamic programming, find triplet in array