Or it could just be someone who uses C++ instead of Python as their interview language. The std::nth_element is in the standard library.