Dividing Array problem

https://ide.codingblocks.com/s/278853 getting wrong answer please check my implementaiton