Made changes to first_repeated_character_inanarray program.