minimum keypad click count hackerrank solution