The understanding of the solution requires knowledge about Faraday Cage which is a 12th standard concept. However the overall explanation is as follows:
Lightning flows around the outside of a car, and the majority of the current flows from the car's metal cage into the ground below. In essence, a car acts like a mobile Faraday cage.