Vectra AI interview question

Go through code and find the errors