Pregunta de entrevista de IBM

Moderately difficult coding questions of the leetcode type