Please help in the question . Answer Deepak's Query

question ) https://hack.codingblocks.com/app/practice/1/149/problem

my answer ) https://ide.codingblocks.com/s/248272