Minimum Number of Operations to Make Word K-Periodic