Question d’entretien chez PayPal

1. Retrieve an element from an array. Time complexity