Write a function in Java called hashsumpigits() that will take a non-negative value to be stored in a hash table and the size of the table and returns the index where the value will be stored. This hash function sums all the digits in the value to be stored and then returns the modulo of that sum with the size of the table. You should use a loop to sum of all the digits. Remember that mod ((%)by 10 yieids the rightmost digit(e.9,126%10is 6), while division () by 10 removes the rightmost digit (e.9.126/10is 12). Examples: hashSumbigits(126,5)→4hash5ungigits(49,5)→3hashsumbigits(731,5)→1Your Answer: Feedback Your feedback will appear here when you check you answer.