Solve four algorithmic library problems | Meta Interview Question