/**
 * In this exercise, you are given two complex numbers represented in Kotlin and your task is to concatenate their string representations.
 *
 * @param real1 The real part of the first complex number.
 * @param imag1 The imaginary part of the first complex number.
 * @param real2 The real part of the second complex number.
 * @param imag2 The imaginary part of the second complex number.
 * @return The string representation of the complex numbers concatenated using the format "(real1 + imag1i) + (real2 + imag2i)".
 *
 * Example:
 * concatenateComplexNumbers(2, 3, 4, -5) returns "(2 + 3i) + (4 - 5i)"
 */
fun concatenateComplexNumbers(real1: Int, imag1: Int, real2: Int, imag2: Int): String {

    val complex1 = "$real1 + ${imag1}i"
    val complex2 = "$real2 + ${imag2}i"
    return "($complex1) + ($complex2)"
}
/**
 * In this exercise, you are given two complex numbers represented in Kotlin and your task is to concatenate their string representations.
 *
 * @param real1 The real part of the first complex number.
 * @param imag1 The imaginary part of the first complex number.
 * @param real2 The real part of the second complex number.
 * @param imag2 The imaginary part of the second complex number.
 * @return The string representation of the complex numbers concatenated using the format "(real1 + imag1i) + (real2 + imag2i)".
 *
 * Example:
 * concatenateComplexNumbers(2, 3, 4, -5) returns "(2 + 3i) + (4 - 5i)"
 */
fun concatenateComplexNumbers(real1: Int, imag1: Int, real2: Int, imag2: Int): String {
/**
 * In this exercise, you are given two complex numbers represented in Kotlin and your task is to concatenate their string representations.
 *
 * @param real1 The real part of the first complex number.
 * @param imag1 The imaginary part of the first complex number.
 * @param real2 The real part of the second complex number.
 * @param imag2 The imaginary part of the second complex number.
 * @return The string representation of the complex numbers concatenated using the format "(real1 + imag1i) + (real2 + imag2i)".
 *
 * Example:
 * concatenateComplexNumbers(2, 3, 4, -5) returns "(2 + 3i) + (4 - 5i)"
 */
fun concatenateComplexNumbers(real1: Int, imag1: Int, real2: Int, imag2: Int): String {

    val complex1 = "$real1 + ${imag1}i"
    val complex2 = "$real2 + ${imag2}i"
    return "($complex1) + ($complex2)"
}