My solution coded in Java for https://github.com/xebia-france/code-elevator