Hello Can someone please help me in understanding how to sovle questions related to stream of object/data/integers. I got this question in one of my interview in amazon
You are getting a stream of objects with a "color" attribute. The objects are coming in random order, and you need to arrange them in R, G, B, R, G, B, R, G, B.... pattern
Write the code for the same. How to approach these types of quetions and what will be the solution to this?Its a whiteboard problem nothing else was given no skeleton method nothing else