Two Strings Game Hackerrank Solution