Problem link : https://codeforces.com/contest/1166/problem/C Code link : https://codeforces.com/contest/1166/submission/286318561 Feel free to discuss about the question in the comments section... Stay tuned...
No download links available.