encoding problem solving