Rice University interview question

not difficult