Citi Interview Question

Asked about Oops concept and ds