Amazon-Sr Software-Phone

Total two questions: a.) (Simple) Find if sum exists in an array b.) Asked question that involved inheritance vs. abstraction.