Unique Prefix Array

Please check my code what’s problem in this

hello @vivekpatel
u need to update u temp pointer before checking the count.
refer ur updated code here-> https://ide.codingblocks.com/s/249430