Solve four algorithmic problems | Meta Interview Question