Z algorithm | LeetCode Weekly Contest 383

Published --