• + 1 comment

    Similar to my solution. Can't it be solved with a shorter, more elegant logic though?