My dell inspiron 14 keeps turning on and off and won't start up

As its only 1 month old tesco are replacing just thought I would ask incase it was something and nothing, but got told hard drive had gone. Not good in a new machine. Thanks anyway.