Tableau Software interview question

find the sum in an array. (i.e. public bool findSum(int[] array, int sum)