Pregunta de entrevista de Tesla

it was completing based on coding (coder pad)