Nooks Interview Question

including algorithm and data structure questions