Find String Roots

Problem Name:
Find String Roots
Site:Spoj
Links:
Tags:
Problem setters: