Amazon Interview Question

Asked a question on Combination sum and graph based problems