Trying my hand at /g/'s programming challenges