Six Red Marbles interview question

Subject based knowledge is required