In a guessing game, the player whose guess is nearest the secret number wins.
Write by_closeness(guesses, target). It returns the guesses sorted from closest to the target to furthest.
8 and 12 are equally close to 10.Once your code passes every test, a reference solution shows up here so you can compare it with yours.