Pergunta de entrevista da empresa IBM

Two leetcode problems for the online Assessments