Hackerrank Swapcase Python Solution