a string s partitioned group size k following procedurethe group consist k character stre second group consist k character string each character exactly groupfor group stre k character remain character fill complete groupnote partition remove fill character group exist concatenate group order resultant string sGiven string s size group k character fill return string array denote composition group s divide procedure Example 1Input s abcdefghi k 3 fill xOutput abcdefghiexplanationthe 3 character abc form groupThe 3 character def form second groupThe 3 character ghi form groupsince group completely fill character stre need use fillThus group form abc def ghiExample 2Input s abcdefghij k 3 fill xOutput abcdefghijxxExplanationSimilar previous example form group abc def ghiFor group use character j string to complete group add x twicethus 4 group form abc def ghi jxx Constraints1 slength 100s consist lowercase english letter only1 k 100fill lowercase english letter