Efficient KeypadsPlus solution adjusted to take into consideration '0'
and '1' entries