Adding 'reverse string implementation'