Haircut solutions

Haircut was solved using Groovy by 1 contestant.