Anonymous Interview Question

Based on arrays , dynamic programming,graphs