Ramp Interview Question

Solve a Code signal, cannot disclose problem