TwoDimension class is used to render all type of two dimensional shapes
Validate the given input to check whether the input is valid one or not
Returns boolean