NVIDIA interview question

asking about reason of errors and some regular data structure questions