Pregunta de entrevista de IBM

Intermediate and basic level coding problems at hackerank