Microsoft interview question

3 colored balls in array . classic

Interview Answer

Anonymous

10 July 2021

pointers for array start & end , and pointer in between them , swap balls and move pointers