Pregunta de entrevista de Amazon

OLP related interviews. Interval sum+cumulative sum algorithm. OOP-related programming.