JLR Interview Question

It’s from their creator code