Cloudbird Digital interview question

Math problem which is difficult