ABC interview question

DS, Computer vision, Puzzle, Coding