this is my solution- https://ide.codingblocks.com/s/80781 but it is giving run error while submitting