MyGlamm interview question

Programming: finding max and unique