Robinhood Interview Question

Find the subdomain counts given an array of URLs