Akshay Naikwadi's submission of Digits & Magic | CodeChef