John Deere interview question

Based on project and basic c