HackerEarth Old keypad in a foreign land problem solution - TheCScience