a fun challange with couple of oldschool algos