Day 14 - implemented in bash, because, well, I could