/**
 * Aerospace Engineer needs to compare the speed of two objects and determine their relative speeds.
 * The inputs are the speed of object 1 (speed1) and the speed of object 2 (speed2).
 * Return "Object 1 is faster" if speed1 is greater than speed2, "Object 2 is faster" if speed2 is greater than speed1,
 * and "Both objects have the same speed" if both speeds are equal.
 */
fun compareSpeed(speed1: Int, speed2: Int): String {

    return when {
        speed1 > speed2 -> "Object 1 is faster"
        speed2 > speed1 -> "Object 2 is faster"
        else -> "Both objects have the same speed"
    }
}
/**
 * Aerospace Engineer needs to compare the speed of two objects and determine their relative speeds.
 * The inputs are the speed of object 1 (speed1) and the speed of object 2 (speed2).
 * Return "Object 1 is faster" if speed1 is greater than speed2, "Object 2 is faster" if speed2 is greater than speed1,
 * and "Both objects have the same speed" if both speeds are equal.
 */
fun compareSpeed(speed1: Int, speed2: Int): String {
/**
 * Aerospace Engineer needs to compare the speed of two objects and determine their relative speeds.
 * The inputs are the speed of object 1 (speed1) and the speed of object 2 (speed2).
 * Return "Object 1 is faster" if speed1 is greater than speed2, "Object 2 is faster" if speed2 is greater than speed1,
 * and "Both objects have the same speed" if both speeds are equal.
 */
fun compareSpeed(speed1: Int, speed2: Int): String {

    return when {
        speed1 > speed2 -> "Object 1 is faster"
        speed2 > speed1 -> "Object 2 is faster"
        else -> "Both objects have the same speed"
    }
}