FDM Group Interview Question

can you adapt ?