This plugin lets you add an automatically-generated table of contents to your page. The hierarchy is based on the heading levels you use on the page. This is especially useful for FAQs and other long pages.
More information: https://wordpress.org/plugins/table-of-contents-plus/