Pergunta de entrevista da empresa Intel Corporation

Given an array, write a method that prints the sum of every third value(index 0-2, index 1-3...so on).