Date of Interview : Jan 2026
YOE : 4 years
I had recently appeared for Microsoft Interviews and felt like sharing my interview experience.
There is a planet where there are 2 species. An Artist and an Enthusiast. The Artist creates a painting for his survival (which is in the form of integers) and the Enthusiast will consume the oldest unique painting that exists. So, using appropriate data structure implement these 2 functions.
For example,
The painters have painted the below paintings.
Paintings : [4,2,5,1,2]So, for the enthusiast, we need to output the oldest unique painting
Enthusiast : 4Now if a painter submits another painting
Paintings : [4,2,5,1,2,4]The enthusiast will have to consume the painting 5, because that is the oldest and unique painting.
Enthusiast : 5Follow ups:
Design a 2 dimensional graph data structure to achieve the below:
Metrics aggregator, monitoring system
Verdict : Rejected