Task for string. c++ programming for beginners