Extract Character From String Python Exercises Hackerrank