Pregunta de entrevista de Building Blocks Ventures

Had to walkthrough code I was asked to develop