https://ide.codingblocks.com/s/469777 friends pairing problem is showing three in output instead of 4 . for 3 friends