How to reset password for CentOS of root?

Boot the Operating system and “Press any key to enter the menu” press any key. Figure 1 Press e in order to edit commands before booting. Search in the list item having Keyword vmlinuz in it by using the arrow keys. Figure 2 Press e again to Edit. Figure 3 type single or init 1 at the end of