IBM interview question

oops concept and dsa like trees and graphs