A program that receives an ambiguous code made with a sequence of bits and returns the shortest coded message and two possible interpretations of that message. The program must be able to work with any bit sequence which varies
Prolog: ambiguous/4 receives the list of the bit sequence in the first argument, returns the coded message and two possible interpretations of that message
OR
OCaml: function 'ambiguous' receives the list of the bit sequence in the first argument and returns a triple tuple with the coded message and two possible interpretations of that message.