Replace the second string in the double quotes with the first string in the double quotes

C++
awk -v FS="," -v OFS="," '{$2=$1;print $0}' input.text
Source

Also in C++: