VK Interview Question

How to remove value K from std::vector using std::remove and std::erase algorithms? How these algorithms works?