Amazon Interview Question

Two algorithm questions that also involved data structures. Really generic Cracking the Coding Interview type stuff.