You need to look at the terms of the warranty to start with and see what it covers.

The fault is an MOT failing one.

However it is not legal to sell a car knowing it has such a fault.

Seriously though Steve I wouldn't trust any 17 year old kid to go and buy a car so
this might not have happened with a bit of parental hands on.