John Deere Interview Question

Based on project and basic c