Hilary Duff’s daughter inspired her to write her new children’s book My Little Brave Girl.