Pergunta de entrevista da empresa Rippling

In the coding exam one was on bfs, one on sorting and the last one was on segment tree. In the interview Round 1 I was asked to code for designing canvas in it there were two queries one was to create object on campus(a 2d array of size m*n) and the other one to update the position of already created object.