SPOJ NHAY

A Straight forward implementation of the KMP Algorithm