As Gareth says if you've bought it from a dealer within 30 days then they have the obligation to fix it FOC.
At the very least the car will need a diagnostic check to see if any fault codes flag up. As it's an electrical issue it might be worth getting the battery checked as a failing battery can cause various electrical gremlins