Kotlin implementation to solve Bachet's weight problem
This problem stems from the French mathematician Claude Gaspard Bachet de Meziriac (1581-1638), who solved it in his famous book Problemes plaisants et dilectables qui se font par les nombres, published in 1624.
https://programmingasap.wordpress.com/2015/03/18/the-weight-problem-of-bachet-de-meziriac/#more-731