Standard Chartered Bank interview question

graph-based coding question. some oops and os questions