Solution to Coderbyte Problems