https://www.hackerrank.com/challenges/cut-the-sticks/problem for this problem, I have written the following code \'vector cutTheSticks(vector arr) {
vector