Added algorithm that compute # of common character in a string