John Deere interview question

N/A: this was for coding assessment