/**
 * Given a pair of marketing data consisting of the number of leads
 * and the conversion rate, calculate the total number of conversions
 * using left and right shift operators and pair unpacking.
 *
 * @param marketingData Pair<Int, Int> A pair of two integers representing the
 *                      number of leads and the conversion rate.
 * @return Int Total number of conversions.
 *
 * Example:
 * unpackShiftOperators(Pair(100, 3)) returns 600
 * unpackShiftOperators(Pair(50, 2)) returns 200
 */
fun unpackShiftOperators(marketingData: Pair<Int, Int>): Int {

    val (leads, conversionRate) = marketingData

    // Use left shift operator to multiply leads by 2 raised to the power of conversionRate
    var totalConversions = leads shl conversionRate

    // Use right shift operator to divide totalConversions by 2 raised to the power of conversionRate
    totalConversions = totalConversions ushr conversionRate

    return totalConversions
}
/**
 * Given a pair of marketing data consisting of the number of leads
 * and the conversion rate, calculate the total number of conversions
 * using left and right shift operators and pair unpacking.
 *
 * @param marketingData Pair<Int, Int> A pair of two integers representing the
 *                      number of leads and the conversion rate.
 * @return Int Total number of conversions.
 *
 * Example:
 * unpackShiftOperators(Pair(100, 3)) returns 600
 * unpackShiftOperators(Pair(50, 2)) returns 200
 */
fun unpackShiftOperators(marketingData: Pair<Int, Int>): Int {
/**
 * Given a pair of marketing data consisting of the number of leads
 * and the conversion rate, calculate the total number of conversions
 * using left and right shift operators and pair unpacking.
 *
 * @param marketingData Pair<Int, Int> A pair of two integers representing the
 *                      number of leads and the conversion rate.
 * @return Int Total number of conversions.
 *
 * Example:
 * unpackShiftOperators(Pair(100, 3)) returns 600
 * unpackShiftOperators(Pair(50, 2)) returns 200
 */
fun unpackShiftOperators(marketingData: Pair<Int, Int>): Int {

    val (leads, conversionRate) = marketingData

    // Use left shift operator to multiply leads by 2 raised to the power of conversionRate
    var totalConversions = leads shl conversionRate

    // Use right shift operator to divide totalConversions by 2 raised to the power of conversionRate
    totalConversions = totalConversions ushr conversionRate

    return totalConversions
}