G7 not working and is acting weird

My Dell g7 doesn’t turn on, the power button lights up when you press it but immediately turns off when you let your finger off of it, my dad had it and says he doesn’t know what happened so currently don’t know when this started or why it happened, does anyone know what’s wrong and or how to fix it?