I\'ve attempted to solve an old HackerRank contest out of curiosity. Out there, there\'s one of the problems which couldn\'t pass all the test cases for my solution. Could t