Tesla Interview Question

Write some test cases based on the given code