Pergunta de entrevista da empresa Veritas Technologies

Some web technology questions. Two algorithms question for easy - medium level