#includeIn this example, find_last_not_of is used to determine the position of the last character in the string s that is not contained in the set of characters lrod. The code outputs the position of this character and the character itself. Package library: The std::string class is part of the C++ standard library, which is included with all modern C++ compilers.#include int main() { std::string s = "hello world"; std::string chars_to_exclude = "lrod"; size_t pos = s.find_last_not_of(chars_to_exclude); if (pos != std::string::npos) { std::cout << "The last character not in \"" << chars_to_exclude << "\" is at position " << pos << std::endl; std::cout << "It is the character '" << s[pos] << "'" << std::endl; } else { std::cout << "All characters in \"" << chars_to_exclude << "\" appear in the string \"" << s << "\"" << std::endl; } return 0; }