Tesla Interview Question

Was given code written in c and asked to find any errors.