Code Question 2

Company: Amazon off campus sde1_24march

Difficulty: medium