Pregunta de entrevista de IBM

Two leetcode problems for the online Assessments