Shilp Gupta's submission of The powerful sum | CodeChef