Reconstruct the Long String

Problem Name:
Reconstruct the Long String
Site:HackerEarth
Links:
Tags: