Sum over all Substrings (Easy Version)

Problem Name:
Sum over all Substrings (Easy Version)
Site:CodeForces
Links:
Tags:
Problem setters: