Globant Interview Question

Some algorithm related question, how to solve some simple problems. For example, given a vector how to change the value in each element with the sum of all the rest elements except the current one.