IMCD Group Interview Question

Financial related puzzle leetcode question