Citi Interview Question

differences between types of inheritance