Pregunta de entrevista de Getir

Hackrank question about iOS Development and Algorithm