AC Solution longest consecutive sequence