Painting “No Loitering” in huge letters on the parking lot earned Mainul and (he/ him) extra work cleaning it in the heat.

Is it a direct object, indirect object, or object of preproisition
tysm