Michelin interview question

Provide code in Python, R, and SQL