hackerrank - reverse-shuffle-merge.py