Ramp interview question

Simple backend task, LC easy + API use