CapitalVia Interview Question

OOPs principle