Ole Gunnar Solskjaer says Jesse Lingard's loan from Manchester United to West Ham has worked out well for all parties.