Company: Rippling_19july
Difficulty: medium
Minimum Changes for Palindromic Password Problem Description The current password is represented by the string currentPassword , consisting only of lowercase Latin letters. New password requirements have just been released. The new password, called newPassword , must meet the following two conditions: It must be a palindrome. It must have a period k . That is, newPassword[i] = newPassword[i+k] , for all i . The objective is to determine the minimum number of characters that need to be changed in currentPassword to create a newPassword of the same length. Complete the function findMinChanges in the editor with the following parameters: string currentPassword : the current password int k : the required period of the new password Returns: int : the minimum number of characters to change to make a valid newPassword Examples Example 1: Input: currentPassword = "abrzbz", k = 3 Output: 1 Explanation: Changing the first character of currentPassword to 'z' creates a newPassword of 'zbzzbz' whic