Periodic and Neumann problems for discrete p(⋅)-Laplacian