Pergunta de entrevista da empresa Google

you need to know basic understanding of time complexities.