Shopee interview question

Reverse a list using python