Pregunta de entrevista de Cognizant

Difference between Greedy algorithm and dynamic.