LinkedIn interview question

Target Sum between continuous nodes in any direction.