IBM Interview Question

oops concept and dsa like trees and graphs