FXCM interview question

math problems to figur out