Anant interview question

Star pattern coding Code of inheritance group query