SPOJ Graph Problem

Can someone please tell me how to approach this problem??

This is Euler circuit bassed problem resources for this can be found here