Swimlane interview question

Determine if an array has a particular sum.