Duke University interview question

Some technique questions