solve longest consecutive sequence