3M interview question

DSA Arrays and Object oriented programming