Dell Technologies Interview Question

They asked to explain a code to reverse a list in python without using predefined functions.