Pergunta de entrevista da empresa Google

General coding questions, cannot show due to privacy.