Last Character After Alternating Deletions From Both Ends

Company: Myntra hackerramp_5july

Difficulty: easy