/**
 * This function calculates the new zoo population after performing left shift and right shift operations.
 *
 * @param zooPopulation An integer representing the initial population of the zoo.
 * @param hour An integer representing the number of hours to perform the shift operations.
 * @return An integer representing the final zoo population after applying the shift operations.
 */
fun shiftOperations(zooPopulation: Int, hour: Int): Int {

    // Perform left shift operation on the zoo population
    var tempPopulation = zooPopulation
    tempPopulation = tempPopulation shl hour

    // Perform right shift operation on the shifted population
    var finalPopulation = tempPopulation
    finalPopulation = finalPopulation shr hour

    return finalPopulation
}
/**
 * This function calculates the new zoo population after performing left shift and right shift operations.
 *
 * @param zooPopulation An integer representing the initial population of the zoo.
 * @param hour An integer representing the number of hours to perform the shift operations.
 * @return An integer representing the final zoo population after applying the shift operations.
 */
fun shiftOperations(zooPopulation: Int, hour: Int): Int {
/**
 * This function calculates the new zoo population after performing left shift and right shift operations.
 *
 * @param zooPopulation An integer representing the initial population of the zoo.
 * @param hour An integer representing the number of hours to perform the shift operations.
 * @return An integer representing the final zoo population after applying the shift operations.
 */
fun shiftOperations(zooPopulation: Int, hour: Int): Int {

    // Perform left shift operation on the zoo population
    var tempPopulation = zooPopulation
    tempPopulation = tempPopulation shl hour

    // Perform right shift operation on the shifted population
    var finalPopulation = tempPopulation
    finalPopulation = finalPopulation shr hour

    return finalPopulation
}