Pregunta de entrevista de DRW

Two leetcode mediums-hards based on arrays