solve longest lines challenge