pragramming languages solution