Tesla Interview Question

Regular programming problems