Tesla Interview Question

Some questions regarding CS and mechanical engineering.