Ad
  • Custom User Avatar

    I was about to comment about this not handling ranges in descending order as well until I realised that the description specifies the numbers will be in ascending order.

    Alas, I spent a lot of time making my solution work both ways :)

    Pays to read the spec carefully. Good lesson.