Pregunta de entrevista de BNY

Hackerrank/code pair consisted of leetcode easy-medium questions.