Vishad Jain

Results 3 issues of Vishad Jain

**Fixes issue:** Reduced the additional space complexity of the code. **Changes:** Changed the vector approach to the linked list approach which doesn't use additional vector which saves our extra space.