XYZ (Turkey) interview question

oops concept .net react js c#