reverse the words in perfect groups of size k. do not reverse the last imperfect group.