Pregunta de entrevista de ByteDance

A simple coding question that I can't remember.