Tray.ai interview question

Detect all the errors in a piece of code