AngelList interview question

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