H&M Group Interview Question

Explain OOPS Concepts and writes pseudo Code for it