66. Count Unique Colors

Medium

I is an image of shape (h, w, 3). Return the number of unique colors, i.e. the number of distinct RGB triples among all of its pixels.

Implement solve(...)