Pergunta de entrevista da empresa A9.com

Design question - was not difficult.