write solution for programming languages hash