HackerRank Problem Solution || Encryption || Python