Remove /category/ from category (archive) page URLs (without using a plugin)

A Category page URL structure looks like this:

example.com/category/cat/child_cat/

How can we do:

example.com/category/cat/child_cat/

Without the use of a plugin (eg, Yoast)?