A simple brute-force solver for https://www.facebook.com/pages/Train-Carriage-Game/108348062559174