This is a question of InterviewBit (Array)
This solution is a tad bit tricky, so it's better to use a pen and paper for better understanding!
If you want my code in C++ or you have any query mention in the comment section.
Like, share and subscribe and support this channel so that I can keep making these kinds of videos.
Sorry for the annoying background music.
#arrays#programming#interviewbit#coding#code#coding #programming #programmer #code #python #coder #technology #codinglife #cpp #c++ #tech #computerscience #software #softwaredeveloper #softwareengineer #programmers #bhfyp