Add same character check algorithm. ### Description It checks if all the characters of a string are same.