Pregunta de entrevista de Meta

typical coding questions such as getting max element from array and optimization suggestions