/**
 * This function takes an actor's name and their best performance.
 * It saves the best performance if it is not null.
 * If the best performance is null, it returns "No best performance recorded."
 * Otherwise, it returns "Best performance recorded: [best_performance]".
 *
 * @param actorName The name of the actor.
 * @param bestPerformance The best performance of the actor.
 * @return A message indicating whether the best performance was saved or not.
 *
 * Examples:
 * saveBestPerformance("Tom Hanks", "Forrest Gump") // "Best performance recorded: Forrest Gump"
 * saveBestPerformance("Johnny Depp", null) // "No best performance recorded."
 */
fun saveBestPerformance(actorName: String, bestPerformance: String?): String {

    return if (bestPerformance != null) {
        // Your code here to save the bestPerformance
        "Best performance recorded: $bestPerformance"
    } else {
        "No best performance recorded."
    }
}
/**
 * This function takes an actor's name and their best performance.
 * It saves the best performance if it is not null.
 * If the best performance is null, it returns "No best performance recorded."
 * Otherwise, it returns "Best performance recorded: [best_performance]".
 *
 * @param actorName The name of the actor.
 * @param bestPerformance The best performance of the actor.
 * @return A message indicating whether the best performance was saved or not.
 *
 * Examples:
 * saveBestPerformance("Tom Hanks", "Forrest Gump") // "Best performance recorded: Forrest Gump"
 * saveBestPerformance("Johnny Depp", null) // "No best performance recorded."
 */
fun saveBestPerformance(actorName: String, bestPerformance: String?): String {
/**
 * This function takes an actor's name and their best performance.
 * It saves the best performance if it is not null.
 * If the best performance is null, it returns "No best performance recorded."
 * Otherwise, it returns "Best performance recorded: [best_performance]".
 *
 * @param actorName The name of the actor.
 * @param bestPerformance The best performance of the actor.
 * @return A message indicating whether the best performance was saved or not.
 *
 * Examples:
 * saveBestPerformance("Tom Hanks", "Forrest Gump") // "Best performance recorded: Forrest Gump"
 * saveBestPerformance("Johnny Depp", null) // "No best performance recorded."
 */
fun saveBestPerformance(actorName: String, bestPerformance: String?): String {

    return if (bestPerformance != null) {
        // Your code here to save the bestPerformance
        "Best performance recorded: $bestPerformance"
    } else {
        "No best performance recorded."
    }
}