/**
 * A farmer wants to plant crops on his field. The farmer can plant crops on a specific range of land.
 * You need to complete the code to determine which plots of land the farmer can plant crops on.
 *
 * @param farmer The name of the farmer.
 * @param start The starting plot of land.
 * @param end The ending plot of land.
 * @return A list of plots of land where the farmer can plant crops.
 */
fun plantCrops(farmer: String, start: Int, end: Int): List<Int> {

    val validPlots = mutableListOf<Int>()

    for (plot in start..end) {  // Iterate over the specific range of land
        // Check if the plot number is divisible by both 3 and 5 and the farmer's name starts with 'A'
        if (plot % 3 == 0 && plot % 5 == 0 && farmer.startsWith('A')) {
            validPlots.add(plot)  // Add the valid plot to the list
        }
    }

    return validPlots
}
/**
 * A farmer wants to plant crops on his field. The farmer can plant crops on a specific range of land.
 * You need to complete the code to determine which plots of land the farmer can plant crops on.
 *
 * @param farmer The name of the farmer.
 * @param start The starting plot of land.
 * @param end The ending plot of land.
 * @return A list of plots of land where the farmer can plant crops.
 */
fun plantCrops(farmer: String, start: Int, end: Int): List<Int> {
/**
 * A farmer wants to plant crops on his field. The farmer can plant crops on a specific range of land.
 * You need to complete the code to determine which plots of land the farmer can plant crops on.
 *
 * @param farmer The name of the farmer.
 * @param start The starting plot of land.
 * @param end The ending plot of land.
 * @return A list of plots of land where the farmer can plant crops.
 */
fun plantCrops(farmer: String, start: Int, end: Int): List<Int> {

    val validPlots = mutableListOf<Int>()

    for (plot in start..end) {  // Iterate over the specific range of land
        // Check if the plot number is divisible by both 3 and 5 and the farmer's name starts with 'A'
        if (plot % 3 == 0 && plot % 5 == 0 && farmer.startsWith('A')) {
            validPlots.add(plot)  // Add the valid plot to the list
        }
    }

    return validPlots
}