FDM Group Interview Question

couldnt get the coding questions so I didnt get into the program practice doing your coding and knowing the outputs.