/**
 * This exercise requires concatenating two strings and then using the 'is' operator
 * to check if the resulting string is equal to a specific value.
 *
 * Given an actor's first and last name, concatenate them by adding a space in between.
 * Then, using the 'is' operator, check if the resulting string is equal to 'Leonardo DiCaprio'.
 * Return True if they are equal, False otherwise.
 *
 * @param actor1 The actor's first name.
 * @param actor2 The actor's last name.
 * @return True if the concatenated string is equal to 'Leonardo DiCaprio', False otherwise.
 *
 * Example:
 * concatenateAndCheck('Leonardo', 'DiCaprio') -> true
 * concatenateAndCheck('Brad', 'Pitt') -> false
 */
fun concatenateAndCheck(actor1: String, actor2: String): Boolean {

    val fullName = actor1 + " " + actor2
    
    return fullName === "Leonardo DiCaprio"
}
/**
 * This exercise requires concatenating two strings and then using the 'is' operator
 * to check if the resulting string is equal to a specific value.
 *
 * Given an actor's first and last name, concatenate them by adding a space in between.
 * Then, using the 'is' operator, check if the resulting string is equal to 'Leonardo DiCaprio'.
 * Return True if they are equal, False otherwise.
 *
 * @param actor1 The actor's first name.
 * @param actor2 The actor's last name.
 * @return True if the concatenated string is equal to 'Leonardo DiCaprio', False otherwise.
 *
 * Example:
 * concatenateAndCheck('Leonardo', 'DiCaprio') -> true
 * concatenateAndCheck('Brad', 'Pitt') -> false
 */
fun concatenateAndCheck(actor1: String, actor2: String): Boolean {
/**
 * This exercise requires concatenating two strings and then using the 'is' operator
 * to check if the resulting string is equal to a specific value.
 *
 * Given an actor's first and last name, concatenate them by adding a space in between.
 * Then, using the 'is' operator, check if the resulting string is equal to 'Leonardo DiCaprio'.
 * Return True if they are equal, False otherwise.
 *
 * @param actor1 The actor's first name.
 * @param actor2 The actor's last name.
 * @return True if the concatenated string is equal to 'Leonardo DiCaprio', False otherwise.
 *
 * Example:
 * concatenateAndCheck('Leonardo', 'DiCaprio') -> true
 * concatenateAndCheck('Brad', 'Pitt') -> false
 */
fun concatenateAndCheck(actor1: String, actor2: String): Boolean {

    val fullName = actor1 + " " + actor2
    
    return fullName === "Leonardo DiCaprio"
}