Pergunta de entrevista da empresa Meta

Solve a coding question with relatively high efficiency.