Google Interview Question

An algorithmic live coding session.