Answer
The output of the program will be:
B's __new__() invoked
A's __new__() invoked
Work Step by Step
__new__ is the constructor of the class and it is called when to create a new instance of class, __init__ is called after the class is created, but the new function here does not create the instance of the class it just have a print function, so __init__ is not invoked.