Hackerrank Swap Case Python Solution Puzzle