/**
 * Find absolute differences between two sets.
 *
 * @param a First set.
 * @param b Second set.
 * @return Set of absolute differences between 'a" and 'b`.
 */
fun absoluteDifferences(a: Set<Int>, b: Set<Int>): Set<Int> {

    return a.flatMap { x -> b.map { y -> Math.abs(x - y) } }.toSet()
}
/**
 * Find absolute differences between two sets.
 *
 * @param a First set.
 * @param b Second set.
 * @return Set of absolute differences between 'a" and 'b`.
 */
fun absoluteDifferences(a: Set<Int>, b: Set<Int>): Set<Int> {
/**
 * Find absolute differences between two sets.
 *
 * @param a First set.
 * @param b Second set.
 * @return Set of absolute differences between 'a" and 'b`.
 */
fun absoluteDifferences(a: Set<Int>, b: Set<Int>): Set<Int> {

    return a.flatMap { x -> b.map { y -> Math.abs(x - y) } }.toSet()
}