Infosys Interview Question

greedy algorithm, dynamic programming, Array, Strings, List