Hackerrank Swap Case Python Solution