Code Question 2

Company: Amazon HackOn

Difficulty: medium