Two Strings Game Hackerrank Solution Python Idle