Mazepath_D(Count, Print)

code: https://ide.codingblocks.com/s/215800
question: https://hack.codingblocks.com/app/contests/1289/234/problem
3test case failing (edited)