C++ program
Chef decided to find the connections with all of his friends inan unnamed social network. He calls a user of the social networkhis friend if there is a common substring of the string “chef” andthe nickname of that user with length ? 2. Given a list of users ofthe social network, compute the number of Chef’s friends.Input
The first line of the input contains a single integer N denotingthe number of users in the social network. N lines follow. Each ofthese lines contains a single string u denoting the nickname of oneuser.
Output
Print a single line containing one integer — the
PayPal Gateway not configured
PayPal Gateway not configured