Chegg, Bay Area online education company once worth $12 billion, is laying off hundreds of workers in a second cut this year.