A seven-year-old girl has had her leg amputated and re-attached backwards so her ankle can eventually replace the leg's original knee following a struggle with bone cancer.