dubdub Interview Question

Algorithms question and design question