You will find javascript program and solution at single place.