Intuition
Fun little problem! Not very challenging, but it did take me a minute to understand what the problem statement really meant with respect to the result. Basically we must sort by timestamp and split the data by user. Then we generate all unique triplets of websites for each user…increment a count for each new triplet found. Return the lexicographically smallest triplet with the max score.
The hardest part about this problem is accepting that n^3 is optimal here.