Hackerrank Swapcase Python Problem