/**
 * Find all numbers between start and end (both included) that are divisible by both 3 and 5.
 *
 * @param start The lower limit for the range of numbers.
 * @param end The upper limit for the range of numbers.
 * @return A list of all numbers divisible by both 3 and 5.
 *
 * Example:
 * divisibleByThreeAndFive(10, 30) returns [15]
 */
fun divisibleByThreeAndFive(start: Int, end: Int): List<Int> {

    val result = mutableListOf<Int>()
    for (num in start..end) {
        if (num % 3 == 0 && num % 5 == 0) {
            result.add(num)
        }
    }
    return result
}
/**
 * Find all numbers between start and end (both included) that are divisible by both 3 and 5.
 *
 * @param start The lower limit for the range of numbers.
 * @param end The upper limit for the range of numbers.
 * @return A list of all numbers divisible by both 3 and 5.
 *
 * Example:
 * divisibleByThreeAndFive(10, 30) returns [15]
 */
fun divisibleByThreeAndFive(start: Int, end: Int): List<Int> {
/**
 * Find all numbers between start and end (both included) that are divisible by both 3 and 5.
 *
 * @param start The lower limit for the range of numbers.
 * @param end The upper limit for the range of numbers.
 * @return A list of all numbers divisible by both 3 and 5.
 *
 * Example:
 * divisibleByThreeAndFive(10, 30) returns [15]
 */
fun divisibleByThreeAndFive(start: Int, end: Int): List<Int> {

    val result = mutableListOf<Int>()
    for (num in start..end) {
        if (num % 3 == 0 && num % 5 == 0) {
            result.add(num)
        }
    }
    return result
}