How to add Custom Post Type menu to Admin Sub-menu WordPress

After a lot of googling, I couldn’t find a solution to my problem. I finally figured it out and have decided to document it below.