Quick sort is giving wrong output

Hey @shrutikatyal
I updated your code and mentioned in comments :https://ide.codingblocks.com/s/329305