Camelcase Hackerrank Solution In Python