Https://ide.codingblocks.com/s/164472

please explain whats wrong with my approach