https://www.spoj.com/problems/SPP/

How to approch SPP spoj problem.Any hint?

First try SEQ