Uber interview question

Convert currency. It’s there in leetcode.