Professional Documents
Culture Documents
Given is the coding scheme designed for wireless communication between smart lock and
android/ios application
Coding scheme : Odd numbered letters are replaced by their mirror image, and even numbered
ones are replaced by two characters - itself and the mirror image. Input character will always be
given in all capital letters.
Example:
ABC ZBYX
XYZ XCBZA
GHI THSR
NOP NMLPK
JKL JQPLO
UTS FTGH
Write functions for encoder and decoder using C or Python Language? Also write the test code
for encoder and decoder?
Note: It is expected that you test the functions using the tool shared with you. We may use your
test code to see the output data.
1