Solve the keyboard pressing to maximize the number of characters problem without using DP, pretty slow solution.