She had caught the main point through the musical which she performed in in high school. She noticed that the melody for the song of Jean Valjean was the same melody as for Javert's solo.
Both men received forgiveness and grace.
Jean Valjean became a new man full of love and mercy.
Javert could not understand it or accept it and ultimately killed himself.