Amrendra Kumar's submission of The D Problem | CodeChef