Ramp interview question

Solve a Code signal, cannot disclose problem