Rotate a string with k positions

Signed-off-by: Ionut Radu <ihonius@gmail.com>