Solutions to Coderbyte's medium difficulty coding challenges