FDM Group interview question

Please solve this math question