Sometimes, it’s unclear what the interviewers are looking for in a coding interview. Often times, you’re guessing what they want to hear, but you aren’t sure.

source