FDM Group interview question

Select the expected output of the code