solution for problem11