/**
 * This function checks if the game is over based on the given score and level.
 * If the score is a multiple of 10 and the level is less than 5, the player wins the game.
 * If the score is divisible by 5 but not 10, the player loses the game.
 * If the level is equal to 5, the player can continue to the next level.
 * Implement the missing code to complete the function and return the appropriate message.
 */
fun checkGameOver(score: Int, level: Int): String {

    return when {
        score % 10 == 0 && level < 5 -> "Congratulations! You won the game!"
        score % 5 == 0 -> "Game over! You lost."
        level == 5 -> "Continue to the next level."
        else -> "Game is still in progress."
    }
}
/**
 * This function checks if the game is over based on the given score and level.
 * If the score is a multiple of 10 and the level is less than 5, the player wins the game.
 * If the score is divisible by 5 but not 10, the player loses the game.
 * If the level is equal to 5, the player can continue to the next level.
 * Implement the missing code to complete the function and return the appropriate message.
 */
fun checkGameOver(score: Int, level: Int): String {
/**
 * This function checks if the game is over based on the given score and level.
 * If the score is a multiple of 10 and the level is less than 5, the player wins the game.
 * If the score is divisible by 5 but not 10, the player loses the game.
 * If the level is equal to 5, the player can continue to the next level.
 * Implement the missing code to complete the function and return the appropriate message.
 */
fun checkGameOver(score: Int, level: Int): String {

    return when {
        score % 10 == 0 && level < 5 -> "Congratulations! You won the game!"
        score % 5 == 0 -> "Game over! You lost."
        level == 5 -> "Continue to the next level."
        else -> "Game is still in progress."
    }
}