What is the problem with your posted solution?