you are given an array of strings names representing filenames. the array is sorted in order of file creation, such that names[i] represents the name of a file created before names[i 1] and after names[i-1] (assume 0-based indexing). because all files must have unique names, files created later with the same name as a file created earlier should have an additional (k) suffix in their names, where k is the smallest positive integer (starting from 1) that does not appear in previous file names.