Siemens Interview Question

GFG bee puzzle, shape puzzle, OOPs concepts