Can anyone help me how to approach this using Object Oriented Programming