provide solution for wrapWords kata