Doubt from coordination chemistry


I have found the answer but can anyone explain this reaction

How addition of hcl changes cis into trans?