/**
 * Librarian has a list of books and wants to create a range of books based on their starting and ending position.
 * Your task is to write a code that takes the starting and ending positions as parameters and returns a list of books within that range.
 *
 * @param start The starting position of the range.
 * @param stop The ending position of the range.
 * @return A list of books within the specified range.
 *
 * Example:
 * createBooksRange(3, 7) -> ['Book3', 'Book4', 'Book5', 'Book6', 'Book7']
 */
fun createBooksRange(start: Int, stop: Int): List<String> {

    val books = listOf("Book1", "Book2", "Book3", "Book4", "Book5", "Book6", "Book7", "Book8", "Book9", "Book10")
    return books.subList(start - 1, stop)
}
/**
 * Librarian has a list of books and wants to create a range of books based on their starting and ending position.
 * Your task is to write a code that takes the starting and ending positions as parameters and returns a list of books within that range.
 *
 * @param start The starting position of the range.
 * @param stop The ending position of the range.
 * @return A list of books within the specified range.
 *
 * Example:
 * createBooksRange(3, 7) -> ['Book3', 'Book4', 'Book5', 'Book6', 'Book7']
 */
fun createBooksRange(start: Int, stop: Int): List<String> {
/**
 * Librarian has a list of books and wants to create a range of books based on their starting and ending position.
 * Your task is to write a code that takes the starting and ending positions as parameters and returns a list of books within that range.
 *
 * @param start The starting position of the range.
 * @param stop The ending position of the range.
 * @return A list of books within the specified range.
 *
 * Example:
 * createBooksRange(3, 7) -> ['Book3', 'Book4', 'Book5', 'Book6', 'Book7']
 */
fun createBooksRange(start: Int, stop: Int): List<String> {

    val books = listOf("Book1", "Book2", "Book3", "Book4", "Book5", "Book6", "Book7", "Book8", "Book9", "Book10")
    return books.subList(start - 1, stop)
}