Pregunta de entrevista de Criteo

Write code for: Ransom note (from cracking the coding interview) Moving average