La Net Team interview question

given a string containing numbers, sum that num, divide it by string length, return interger