Pergunta de entrevista da empresa Meta

Find maximum sum of all elements of an array where no two adjacent elements are considered.