The std::find_first_of algorithm returns the left-most element from the first range, that matches any of the elements in a second range.
Since neither range is ordered, the complexity is quadratic.
Compiler Explorer link: https://compiler-explorer.com/z/r4WhWovK1