/**
 * Given two positive integers n and m, return a list of all the multiples of n that are less than or equal to m.
 *
 * @param n The number to find multiples of.
 * @param m The upper limit.
 * @return A list of multiples of n less than or equal to m.
 */
fun computeMultiples(n: Int, m: Int): List<Int> {

    val multiples = mutableListOf<Int>()
    var i = 1

    while (n * i <= m) {
        if (n * i % 2 == 0) {
            multiples.add(n * i)
        }
        i++
    }

    return multiples
}
/**
 * Given two positive integers n and m, return a list of all the multiples of n that are less than or equal to m.
 *
 * @param n The number to find multiples of.
 * @param m The upper limit.
 * @return A list of multiples of n less than or equal to m.
 */
fun computeMultiples(n: Int, m: Int): List<Int> {
/**
 * Given two positive integers n and m, return a list of all the multiples of n that are less than or equal to m.
 *
 * @param n The number to find multiples of.
 * @param m The upper limit.
 * @return A list of multiples of n less than or equal to m.
 */
fun computeMultiples(n: Int, m: Int): List<Int> {

    val multiples = mutableListOf<Int>()
    var i = 1

    while (n * i <= m) {
        if (n * i % 2 == 0) {
            multiples.add(n * i)
        }
        i++
    }

    return multiples
}