Peterbilt interview question

Scenario based coding questions and some basic concepts!