TMA Solutions interview question

C pointer, OOP, Design Pattern, Array, Fix code