solution to the spotify hard programming challenge in rust