<Multiply (k+1 keypresses): Multiply M by k>
is wrong. In order to multiply current
M letters on the screen k times, you need k + 2 key presses: one key2, one key3, and k key4.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.