Alternating Digit Sum

Company: Visa iit roorkee

Difficulty: easy