Need help in STRINGRA(AUG17)

problem link :https://www.codechef.com/AUG17/problems/STRINGRA

Please someone explain how multiple edges are possible in the given graph ?

You should not ask about problems in a running contest in discuss :slight_smile:
The authors clear all the doubts if you just comment in the problem statement itself!

The contest isnt over yet. Please refrain fro asking such questions till contest is live.

//