Question d’entretien chez Expedia Group

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