Codecademy interview question

What was your thought process while helping the student?