using System; using System.Linq; namespace RedditDailyProgrammer { class Program { static void Main(string[] args) { Console.WriteLine(number110Decode("Jr;;p ept;f")); Console.WriteLine(number110Decode("Lmiyj od ,u jrtp")); Console.WriteLine(number110Decode("Trffoy $22- Dp;brf/")); } static string number110Decode(string msg) { string unshift = " QWERTYUIOP{}ASDFGHJKL:\"ZXCVBNM<>?qwertyuiop[]asdfghjkl;'zxcvbnm,./~!@#$%^&*()_+`1234567890-="; return new string(msg.Select((ch) => unshift[Math.Max(unshift.IndexOf(ch) - 1, 0)]).ToArray()); } } }