FDM Group interview question

Nothing really complicated