Alternating Pattern with Segment Reversals - Amazon HackOn OA Question | OAHelper