Amazon Interview Question

find all possible combinations to get a particular sum from an array