Question d’entretien chez Auction.com

solving a problem using javascript