Pregunta de entrevista de Koodoo

Technical test solving an account issue in javascript