Nooks interview question

including algorithm and data structure questions