time complexity comparison findcelebrities