Pergunta de entrevista da empresa Google

How do turn this solutions from an O(n) into an O(1) solution