You are given 4 classes — Shape, Polygon, Square, Circle.
Classes Polygon and Circle both extend the class Shape, the class Square extends the class Polygon.
You need to implement a method that takes Shape array and adds every element to one of the provided Lists based on their class.