FDM Group Interview Question

Please solve this math question