lower

fun lower(from: Int, to: Int, val: Int): Int