Voleon Interview Question

Common LC Medium question. Not too difficult.