Alternating Sign Subsequence with Bonus

Company: Infosys sp role_26april

Difficulty: medium