/**
 * You are an economist advising a client on their investment options.
 * Implement a function that takes in the investment amount, the client's risk tolerance level,
 * and the current market conditions (as a boolean value) and returns the optimal investment option.
 *
 * The investment options are as follows:
 * - Low-risk bonds: Recommended if the investment amount is less than or equal to $500,000 and the market conditions are stable.
 * - High-risk stocks: Recommended if the investment amount is greater than $500,000 and the market conditions are positive.
 * - Precious metals: Recommended if the investment amount is greater than $1,000,000 or the market conditions are negative.
 * - Real estate: Recommended if the investment amount is greater than $1,500,000 and the market conditions are stable.
 *
 * Complete the code to return the optimal investment option based on the conditions mentioned above.
 */
fun determineOptimalInvestment(investment: Int, riskTolerance: Int, marketConditions: Boolean): String {

    if (investment <= 500000 && marketConditions) {
        return "Low-risk bonds"
    }
    if (investment > 500000 && marketConditions) {
        return "High-risk stocks"
    }
    if (investment > 1000000 || !marketConditions) {
        return "Precious metals"
    }
    if (investment > 1500000 && marketConditions) {
        return "Real estate"
    }
    return "No optimal investment option found"
}
/**
 * You are an economist advising a client on their investment options.
 * Implement a function that takes in the investment amount, the client's risk tolerance level,
 * and the current market conditions (as a boolean value) and returns the optimal investment option.
 *
 * The investment options are as follows:
 * - Low-risk bonds: Recommended if the investment amount is less than or equal to $500,000 and the market conditions are stable.
 * - High-risk stocks: Recommended if the investment amount is greater than $500,000 and the market conditions are positive.
 * - Precious metals: Recommended if the investment amount is greater than $1,000,000 or the market conditions are negative.
 * - Real estate: Recommended if the investment amount is greater than $1,500,000 and the market conditions are stable.
 *
 * Complete the code to return the optimal investment option based on the conditions mentioned above.
 */
fun determineOptimalInvestment(investment: Int, riskTolerance: Int, marketConditions: Boolean): String {
/**
 * You are an economist advising a client on their investment options.
 * Implement a function that takes in the investment amount, the client's risk tolerance level,
 * and the current market conditions (as a boolean value) and returns the optimal investment option.
 *
 * The investment options are as follows:
 * - Low-risk bonds: Recommended if the investment amount is less than or equal to $500,000 and the market conditions are stable.
 * - High-risk stocks: Recommended if the investment amount is greater than $500,000 and the market conditions are positive.
 * - Precious metals: Recommended if the investment amount is greater than $1,000,000 or the market conditions are negative.
 * - Real estate: Recommended if the investment amount is greater than $1,500,000 and the market conditions are stable.
 *
 * Complete the code to return the optimal investment option based on the conditions mentioned above.
 */
fun determineOptimalInvestment(investment: Int, riskTolerance: Int, marketConditions: Boolean): String {

    if (investment <= 500000 && marketConditions) {
        return "Low-risk bonds"
    }
    if (investment > 500000 && marketConditions) {
        return "High-risk stocks"
    }
    if (investment > 1000000 || !marketConditions) {
        return "Precious metals"
    }
    if (investment > 1500000 && marketConditions) {
        return "Real estate"
    }
    return "No optimal investment option found"
}