• + 1 comment

    I didn't come up with this solution. I think I was told the solution, and I coded it myself.

    HackerRank solutions.