Expedia Group Interview Question

Convert a string to integer? Given the sum find any array elements that add up to that sum.