Domanda di colloquio di Yahoo

Nothing really that unexpected, just some questions on data structures and algorithms