Iterate over the length of the string and keep converting the characters to their ASCII
Keep adding up the values till the end of sentence.
When we come across a space character, we store the sum calculated for that word and set the sum equal to zero again.
Later, we print elements
Sums of ASCII values of each word in a sentence : https://www.geeksforgeeks.org/sums-of-ascii-values-of-each-word-in-a-sentence/