Pregunta de entrevista de Canva

120 mins Coding challenge on HackerRank platform. Please note that if HackerRank gives you the error “Terminated due to timeout”, this indicates your algorithm may be correct but not optimal and is being canceled for taking too long.