/**
 * In this exercise, you need to complete the code that checks whether the given actor and actress have the same popularity level.
 * If both the actor and actress are equally popular, return 'Both'. If the actor is more popular, return the actor's name.
 * If the actress is more popular, return the actress's name. If their popularity levels are equivalent but unknown, return 'Unknown'.
 *
 * @param actor the name of the actor
 * @param actress the name of the actress
 * @return the name of the more popular person or 'Both' if equally popular or 'Unknown' if popularity levels are equal but unknown
 *
 * Example:
 * checkActorActress("Brad Pitt", "Angelina Jolie")
 * Output: "Both"
 *
 * checkActorActress("Leonardo DiCaprio", "Kate Winslet")
 * Output: "Unknown"
 */
fun checkActorActress(actor: String, actress: String): String {

    return when {
        actor.length > actress.length && actor.length != actress.length -> actor
        actress.length > actor.length && actress.length != actor.length -> actress
        else -> ""
    }
}
/**
 * In this exercise, you need to complete the code that checks whether the given actor and actress have the same popularity level.
 * If both the actor and actress are equally popular, return 'Both'. If the actor is more popular, return the actor's name.
 * If the actress is more popular, return the actress's name. If their popularity levels are equivalent but unknown, return 'Unknown'.
 *
 * @param actor the name of the actor
 * @param actress the name of the actress
 * @return the name of the more popular person or 'Both' if equally popular or 'Unknown' if popularity levels are equal but unknown
 *
 * Example:
 * checkActorActress("Brad Pitt", "Angelina Jolie")
 * Output: "Both"
 *
 * checkActorActress("Leonardo DiCaprio", "Kate Winslet")
 * Output: "Unknown"
 */
fun checkActorActress(actor: String, actress: String): String {
/**
 * In this exercise, you need to complete the code that checks whether the given actor and actress have the same popularity level.
 * If both the actor and actress are equally popular, return 'Both'. If the actor is more popular, return the actor's name.
 * If the actress is more popular, return the actress's name. If their popularity levels are equivalent but unknown, return 'Unknown'.
 *
 * @param actor the name of the actor
 * @param actress the name of the actress
 * @return the name of the more popular person or 'Both' if equally popular or 'Unknown' if popularity levels are equal but unknown
 *
 * Example:
 * checkActorActress("Brad Pitt", "Angelina Jolie")
 * Output: "Both"
 *
 * checkActorActress("Leonardo DiCaprio", "Kate Winslet")
 * Output: "Unknown"
 */
fun checkActorActress(actor: String, actress: String): String {

    return when {
        actor.length > actress.length && actor.length != actress.length -> actor
        actress.length > actor.length && actress.length != actor.length -> actress
        else -> ""
    }
}