Pregunta de entrevista de Shopee

Programming fundamentals and code trick question.