Facebook programming challenge- substitution cipher decoding