CodeMarathon length Solution