Zhang Yide's submission of A Magical Length | CodeChef