Pergunta de entrevista da empresa LinkedIn

Target Sum between continuous nodes in any direction.