Two Strings Game Hackerrank Solution Python Programming