Tripjack interview question

Round1: Coding and Decoding problem as MCQ (Hard Level)