Its working but not validate, i seen the solution and its quite different from mine,but the output should be the same. im just wondering if my version it's legal and correct even if its not validate. Please let me know if there are some important mistake.