reverse into K groups Accepted