This is a homework from YZU Digital Design and you will get the optimized SOP from K-map.