GIC Interview Question

Algorithm, data structure, dynamic programming