Pregunta de entrevista de Kornit Digital

two hours test, checking whats wrong with a code and writing three functions