Cisco interview question

Hackerrank Challenge with 6 questions, algorithm-oriented with serious corner cases.