coding and decoding problems with solutions