/**
 * This function takes a dictionary 'playerStats' containing game stats of a player,
 * and an integer 'healthIncrease' representing the amount by which the player's health needs to be increased.
 * It should modify the 'health' value in the dictionary by incrementing it with the given amount.
 *
 * @param playerStats A dictionary containing game stats of a player.
 * @param healthIncrease The amount by which the player's health needs to be increased.
 * @return The modified playerStats dictionary with the updated health value.
 */
fun incrementHealth(playerStats: MutableMap<String, Int>, healthIncrease: Int): MutableMap<String, Int> {

    playerStats["health"] = playerStats.getOrDefault("health", 0) + healthIncrease
    return playerStats
}
/**
 * This function takes a dictionary 'playerStats' containing game stats of a player,
 * and an integer 'healthIncrease' representing the amount by which the player's health needs to be increased.
 * It should modify the 'health' value in the dictionary by incrementing it with the given amount.
 *
 * @param playerStats A dictionary containing game stats of a player.
 * @param healthIncrease The amount by which the player's health needs to be increased.
 * @return The modified playerStats dictionary with the updated health value.
 */
fun incrementHealth(playerStats: MutableMap<String, Int>, healthIncrease: Int): MutableMap<String, Int> {
/**
 * This function takes a dictionary 'playerStats' containing game stats of a player,
 * and an integer 'healthIncrease' representing the amount by which the player's health needs to be increased.
 * It should modify the 'health' value in the dictionary by incrementing it with the given amount.
 *
 * @param playerStats A dictionary containing game stats of a player.
 * @param healthIncrease The amount by which the player's health needs to be increased.
 * @return The modified playerStats dictionary with the updated health value.
 */
fun incrementHealth(playerStats: MutableMap<String, Int>, healthIncrease: Int): MutableMap<String, Int> {

    playerStats["health"] = playerStats.getOrDefault("health", 0) + healthIncrease
    return playerStats
}