Academia.edu interview question

Slight twist on a well known coding problem