Pregunta de entrevista de Wayfair

3 problems namely to find a bug in the code, to implement a pattern into code and finally to implement a mathematical equation to the code.