Hackerearth complete-string-4