Pergunta de entrevista da empresa Zopper

Two consecutive element with sum k