AngelList Interview Question

Given a problem, implement an algorithm that solves the problem.