Since you just purchased it, take it back to where you got it and replace it for free. If "Recently" means more the 30 days and less the 1 year, you can send it back to HP to have them fix it for free.
If this is a Recently Purchased Used laptop, or you want to fix it yourself, try posting in the HP Forum for better results
A forum community dedicated to tech experts and enthusiasts. Come join the discussion about articles, computer security, Mac, Microsoft, Linux, hardware, networking, gaming, reviews, accessories, and more!