Design a c++ program that asks the user for a series of names(in no particular order). After the final person’s name has beenentered, the program should display the name that is firstalphabetically and the name that is last alphabetically. Forexample, if the user enters the names Kristen, Joel, Adam, Beth,Zeb, and Chris, the program would display Adam and Zeb. Must use atleast one function in addition of main() and loop .