Vectra AI Interview Question

Go through code and find the errors