Pregunta de entrevista de Indeed

Oops concept, testing and coding problem