Compete the programming but the result is not correct.