In this it is saying to have a return type of ArrayList i am not getting it what type is that but to solve this question i have used vector as return type
MY CODE => https://ide.codingblocks.com/s/259800
I am getting correct answer but still it is not getting accepted so i believe there is some mistake while i am printing the output