What is solution of the problem:- http://mirror.codeforces.com/gym/101915/problem/D
Problem Link:- http://mirror.codeforces.com/gym/101915/problem/D
Leetcode Weekly 498 Solution Discussion