Razorpay SDE-1 OA 2025 | Gateway Error Stream Monitoring & Smart-Route Payment Failover

Razorpay · Question · Posted Jun 2026

Problem 1 - Gateway Error Stream Monitoring Problem Statement Razorpay's telemetry engine monitors a chronological stream of payment response logs represented as an integer array logs of size N. Each log entry may be: 0 → Successful transaction. 1 → Transient network timeout error. 2 → Critical bank server rejection. A contiguous segment is considered compliant if: It contains at most K transient network errors (1s). It contains no critical bank server rejections (2s). Find the maximum possible length of ...

The full answer & interview discussion are available to premium members.

Log in Create a free account