Pregunta de entrevista de Big Switch Networks

A String manipulation question: reverse first K character of the string.