IBM Interview Question

There were several coding questions on the HackerRank, make sure you know your data structures