Siemens interview question

1)Use polymorphism to create a class that sorts the given array