Pregunta de entrevista de Lightbits Labs

fix a code and some memory question.