/**
 * In this exercise, you need to write a function that takes two input strings and performs the following operations:
 *
 * 1. If both input strings are empty, return an empty string.
 * 2. If input1 is empty, concatenate the word 'Empty' to input2 and return the resulting string.
 * 3. If input2 is empty, concatenate the word 'Empty' to input1 and return the resulting string.
 * 4. If both input strings are not empty, concatenate input1, a space, and input2 and return the resulting string.
 *
 * @param input1 The first input string.
 * @param input2 The second input string.
 * @return The resulting string after performing the specified operations.
 */
fun nestedIfElseStringConcatenation(input1: String, input2: String): String {

    return when {
        input1.isEmpty() && input2.isEmpty() -> "Empty"
        input1.isEmpty() -> input2 + "Empty"
        input2.isEmpty() -> input1 + "Empty"
        else -> "$input1 $input2"
    }
}
/**
 * In this exercise, you need to write a function that takes two input strings and performs the following operations:
 *
 * 1. If both input strings are empty, return an empty string.
 * 2. If input1 is empty, concatenate the word 'Empty' to input2 and return the resulting string.
 * 3. If input2 is empty, concatenate the word 'Empty' to input1 and return the resulting string.
 * 4. If both input strings are not empty, concatenate input1, a space, and input2 and return the resulting string.
 *
 * @param input1 The first input string.
 * @param input2 The second input string.
 * @return The resulting string after performing the specified operations.
 */
fun nestedIfElseStringConcatenation(input1: String, input2: String): String {
/**
 * In this exercise, you need to write a function that takes two input strings and performs the following operations:
 *
 * 1. If both input strings are empty, return an empty string.
 * 2. If input1 is empty, concatenate the word 'Empty' to input2 and return the resulting string.
 * 3. If input2 is empty, concatenate the word 'Empty' to input1 and return the resulting string.
 * 4. If both input strings are not empty, concatenate input1, a space, and input2 and return the resulting string.
 *
 * @param input1 The first input string.
 * @param input2 The second input string.
 * @return The resulting string after performing the specified operations.
 */
fun nestedIfElseStringConcatenation(input1: String, input2: String): String {

    return when {
        input1.isEmpty() && input2.isEmpty() -> "Empty"
        input1.isEmpty() -> input2 + "Empty"
        input2.isEmpty() -> input1 + "Empty"
        else -> "$input1 $input2"
    }
}