coding exercise and solution for especial question