Zycus interview question

oops concept and algorithms