Block interview question

Implement a particular simple algorithm and then elaborate on it with the interviewer.