WONT START WHEN HOT

2001 Renault Megane

Engine Mechanical problem
2001 Renault Megane Manual 37200 miles

Friends,

I recently bought a Renault Megane Dynamique+ and have done 200 miles on it so far. I have an intermittent starting problem with it. After driving for a while, say 1 hr continuously, when I park and switch off the engine and try to start it again, it won't start. However if I leave it for 20-30 mins come back and start, it starts perfectly and drives perfectly.

I called RAC for resuce and by the time they arrived, the car started on its own and no issues.

Have any of you had a similar problem? Appreciate if you can explain in detail.