Unlock - STL Challenges

Please help me to approach this problem.

I’ve done this please tell me whether this is the correct approach

Hello Sufia, you have done something wrong I have commented the your code. We don’t need to return the positions we need to return the elements itself.
Please have a look at this. I hope it will be clear to you it is your code only with some comments and modifications.

I hope it is clear to you. In case it is clear to you pls mark it as resolve and provide the rating as well as feedback so that we can improve ourselves.
In case there is still some confusion pls let me know, I will surely try to help you out.
Thanks :slight_smile:
Happy Coding !!