SDRC Interview Question

oops and basic data structure