/**
 * Find the maximum of two numbers using nested if statements and the 'is' operator.
 */
fun findMax(num1: Int?, num2: Int?): Any {

    // Check if num1 is not null and num2 is not null
    if (num1 != null) {
        if (num2 != null) {
            // Compare num1 and num2
            return when {
                num1 > num2 -> num1
                num1 < num2 -> num2
                else -> "Both numbers are equal"
            }
        }
    }
    return "Invalid input"
}
/**
 * Find the maximum of two numbers using nested if statements and the 'is' operator.
 */
fun findMax(num1: Int?, num2: Int?): Any {
/**
 * Find the maximum of two numbers using nested if statements and the 'is' operator.
 */
fun findMax(num1: Int?, num2: Int?): Any {

    // Check if num1 is not null and num2 is not null
    if (num1 != null) {
        if (num2 != null) {
            // Compare num1 and num2
            return when {
                num1 > num2 -> num1
                num1 < num2 -> num2
                else -> "Both numbers are equal"
            }
        }
    }
    return "Invalid input"
}