Pergunta de entrevista da empresa IBM

a few coding challenge questions. One was the aladdin leetcode problem.