Remote Reps (CA) interview question

They wanted to explain my java code