Amazon interview question

Target Sum from the Leetcode