[SRM606] EllysSubstringSorter by Yanzhe Chen