The function f(x) returns the sum of the numerical characters in the input string. It ignores any non-numerical characters.

