Regarding triplet question

@talhashamim001 why have you written sum = first + second + third in your code as you have shared it on your doubt portal and next thing how it will separate all elemenets?

coz sum is of 3 elements ive taken them in these 3 variables and have also used them to avoid duplicacy, please dry run on paper with an example @ridhimankumar19_2a2404cbceb4b08d