Periodic Strings | judge.