String rotation moderate challenge solved