LeetCode

4 Keys Keyboard

Click here for an explanation.