Two Strings Game Hackerrank Solution For Python