PhysicsWallah interview question

Input/Output Js questions about referencing and promises