Hackerrank Swap Case Python Problem Solving