/**
 * Calculate the total capacity of a bookshelf based on the number
 * of books it can hold per row and the number of rows it can have.
 *
 * @param totalBooks The total number of books in the library.
 * @param booksPerRow The number of books each row can hold.
 * @param rowsPerShelf The number of rows the shelf can have.
 * @return The total capacity of the bookshelf.
 */
fun calculateShelfCapacity(totalBooks: Int, booksPerRow: Int, rowsPerShelf: Int): Int {

    val shelfCapacity = (totalBooks shl booksPerRow) or rowsPerShelf
    return shelfCapacity
}
/**
 * Calculate the total capacity of a bookshelf based on the number
 * of books it can hold per row and the number of rows it can have.
 *
 * @param totalBooks The total number of books in the library.
 * @param booksPerRow The number of books each row can hold.
 * @param rowsPerShelf The number of rows the shelf can have.
 * @return The total capacity of the bookshelf.
 */
fun calculateShelfCapacity(totalBooks: Int, booksPerRow: Int, rowsPerShelf: Int): Int {
/**
 * Calculate the total capacity of a bookshelf based on the number
 * of books it can hold per row and the number of rows it can have.
 *
 * @param totalBooks The total number of books in the library.
 * @param booksPerRow The number of books each row can hold.
 * @param rowsPerShelf The number of rows the shelf can have.
 * @return The total capacity of the bookshelf.
 */
fun calculateShelfCapacity(totalBooks: Int, booksPerRow: Int, rowsPerShelf: Int): Int {

    val shelfCapacity = (totalBooks shl booksPerRow) or rowsPerShelf
    return shelfCapacity
}