Two Strings Game Hackerrank Solution Python Code