Remitly interview question

A coding questions on Coderpad