Add find longest sequence solution.