Sollicitatievraag bij Walmart Global Tech

How would you implement authentication and authorization in an API?