PwC interview question

Program on Class equality (finding output of program)